package com.yb0os1.vo;

import com.yb0os1.entity.DishFlavors;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DishVO implements Serializable {
    @Schema(name = "主键ID")
    private Long id;

    //菜品名称
    @Schema(name = "菜品名称")
    private String name;

    //菜品分类id
    @Schema(name = "菜品分类id")
    private Long categoryId;

    //菜品价格
    @Schema(name = "菜品价格")
    private BigDecimal price;

    //图片
    @Schema(name = "图片")
    private String image;

    //描述信息
    @Schema(name = "描述信息")
    private String description;

    //0 停售 1 起售
    @Schema(name = "菜品状态")
    private Integer status;

    @Schema(name = "更新时间")
    private LocalDateTime updateTime;

    @Schema(name = "菜品分类名字")
    private String categoryName;

    @Schema(name = "菜品的口味")
    private List<DishFlavors> flavors = new ArrayList<>();
}
